GoXam for WPF v3
FindKeyForNode Method (GraphLinksModel<NodeType,NodeKey,PortKey,LinkType>)
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class : FindKeyForNode Method
Find the key for node data.
Syntax
protected virtual NodeKey FindKeyForNode( 
   NodeType nodedata
)

Parameters

nodedata

Return Value

the (hopefully) unique key for the given node data in this model
Remarks

This is used for model discovery. This method can be overridden in case the NodeKeyPath property path is not flexible enough or fast enough to get the key for a node.

If NodeKeyIsNodeData is true, this just converts the nodedata argument to the NodeKey type and returns it.

See Also

Reference

GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class
GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Members